import React from 'react';
import logo from '../assets/logo.png';
import { HomeOutlined, SettingOutlined, SolutionOutlined, CarryOutOutlined, DownloadOutlined, UploadOutlined } from 'dw-mx-icons';
// 整体布局
import BasicLayout from '../layouts/BasicLayout';
import Test from '@/rick/test';
import AppIndex from '@/home/Home';
import AppItem from '@/application/AppIndex';

// 登录、异常页
import Login from '../pages/Login';
import Error404 from '../pages/404';

// 认证组件
import NeedUserAuthorized from '../auth/NeedUserAuthorized';

import UTP from '../pages/UTP/UTP';
export default [
    {
        path: '/login',
        component: Login,
    },
    {
        path: '/',
        component: BasicLayout,
        props: {
            title: '低代码平台',
            logo,
        },
        routes:[
            {
                path: '/',
                redirect: 'Home',
            },
            {
                path:'Home',
                name: '首页',
            },
            {
                path: 'AppIndex',
                component: AppIndex,
                name:'应用'
            },
            {
                path:'AppItem',
                component:AppItem,
                name:'应用子节点',
                hideInMenu:true
            },
            {
                path:'Export',
                name:'数据源'
            }
        ],
    },
];
